package com.ezcoding.dao;

import com.ezcoding.model.User;
import com.jfinal.plugin.activerecord.Db;

public class UserDao {

    public static UserDao dao = new UserDao();

    public User getUserByUsername(String username){
        String sql = Db.getSql("User.getUserByUsername");

        return User.dao.findFirst(sql,username);
    }

}
